package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.model.SUserVehicles;
import cn.huiyunche.base.service.vo.UserVehiclesVo;
import cn.huiyunche.tools.basic.exceptions.BusinessException;

import java.util.List;

public interface UserVehiclesService {

    /**
     * 修改用户常用车型
     *
     * @param userVehicles 用户常用车型实体
     * @return int
     * @throws BusinessException
     */
    int updateUserVehicle(UserVehiclesVo userVehiclesVo) throws Exception;

    /**
     * 新增用户常用车型
     *
     * @param userVehicles 用户常用车型实体
     * @return int
     * @throws BusinessException
     */
    int addUserVehicles(UserVehiclesVo userVehiclesVo) throws Exception;

    /**
     * 根据用户常用车型ID主键删除数据
     *
     * @param vehiclesId 常用车型ID
     * @return int
     * @throws BusinessException
     */
    int deleteUserVehicles(String vehiclesId) throws Exception;

    /**
     * 查询用户常用车型
     *
     * @return List<UserVehicles>
     * @throws BusinessException
     */
    List<SUserVehicles> selectUserVehicles() throws Exception;
}
